<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo __('CakePHP: the rapid development php framework:'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php echo $this->Html->script('jquery-1.8.2.min'); ?>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('backend');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
	<div id='wapper'>
		<header> 
			<div class='bwrapper-content'>
				<?php echo $this->Html->image('logo.png', array('class' => 'blogo')); ?>
				<span class='bh-text'>Administrator</span>
				<?php if($this->Session->check('Auth.User')): ?>
				<ul class='bhead-info'>
					<li>Welcome <b> <?php echo $this->Session->read('Auth.User.first_name')." ".$this->Session->read('Auth.User.last_name'); ?></b></li>
					<li>
						<a href='#' class='myaccount'> My Account </a> | 
						<?php echo $this->Html->link('Logout', array("controller" => 'Users', "action" => 'logout'))?>
					</li>
					<li><a href='#' class='newmsgs'> 4 new messages </a></li>
				</ul>
				<?php endif; ?>
			</div>
		</header> <!-- end header -->
		<div id='bmenu''>
			<div class='bwrapper-content'>
			<?php if($this->Session->check('Auth.User')): ?>
				<?php echo $this->fetch('admin_menu'); ?>
			<?php endif; ?>
			</div>
		</div> <!-- end #bmenu -->
		<div id='bcontent' class='bwrapper-content'>
			<?php #echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
		</div> <!-- end #wrapper-content -->
	</div>
	<div id='footer'>
			<div class='bwrapper-content'>
				©2012 Ticket Booking System. All rights reserved. Admin Build Information
			</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
